package com.cy.store.service;

import com.cy.store.entity.Address;

import java.util.List;

public interface AddressService {
    /**
     * 插入新的地址信息
     * @param uid
     * @param username
     * @param address
     */
    void addNewAddress(Integer uid, String username, Address address);

    /**
     * 得到用户名下的所有地址
     * @param uid
     * @return
     */
    List<Address> getByUid(int uid);

    void setDefault(Integer aid,Integer uid,String username);

    void delete(Integer aid,Integer uid,String username);

    Address getByAid(Integer aid,Integer uid);
}
